from shapes import *

world=TurtleWorld()
steve=Turtle()
steve.color = 'blue'
steve.delay = 0

def house(t, size=100):
	square(t, size)
	move(t, 0, size)
	equilateral_tri(t, size)
	move(t, size*.5, -size)
	door(t, size)
	#move(t, size*.5, size)
	move(t, -size*.5, 0)
	
	
	
def garage(t, size=100):
	rect(t, size)
	move(t, 20, 0)
	garagedoor(t, size)
	
	
def door(t, size=100):
	rect(t, size*.25, size*.5)
	move(t, size*.15, size*.25)
	arc(t, size*.02)
	move(t, -size*.15, -size*.25)
	
def garagedoor(t, size=100):
	square(t, size*.60, size*0)
	move(t, size*.10, size*.15)
	square(t, size*.20, size*0)
	
	
	
	
def human(t, size=100):
	arc(t, size/2.0, 360)
	move(t, 0, -size/2.0)
	line(t, 0, -size)
	line(t, -size/4.0, -size/4.0)
	move(t, size/4.0, size/4.0)
	line(t, size/4.0, -size/4.0)
	move(t, -size/4.0, size/4.0)
	move(t, 0, size/2.0)
	line(t, -size/4.0, -size/4.0)
	move(t, size/4.0, size/4.0)
	line(t, size/4.0, -size/4.0)
	
	



house(steve)
move(steve, 100,0)
garage(steve)
move(steve, 0, -100)
human(steve, 25)
move(steve, 250, 50)
house(steve)
move(steve, 100,0)
garage(steve)
move(steve, 0, -100)
human(steve, 25)
move(steve, 250, 150)
house(steve)
move(steve, 100,0)
garage(steve)
move(steve, 0, -100)
human(steve, 25)
move(steve, 0, -300)
house(steve)
move(steve, 100,0)
garage(steve)
move(steve, 0, -100)
human(steve, 25)
move(steve, -500, 200)
house(steve)
move(steve, 100,0)
garage(steve)
move(steve, 0, -100)
human(steve, 25)
move(steve, -600, 150)
house(steve)
move(steve, 100,0)
garage(steve)
move(steve, 0, -100)
human(steve, 25)


















#move(steve, 300, -200)
#house(steve)
#move(steve, 300, 200)
#house(steve)
#move(steve, 300, -200)
#house(steve)
#move(steve, -250, 75)
#human(steve, 25)
#steve.pu()
#steve.fd(100)
#move(steve, -600, 40)
#human(steve, 25)
#move(steve, 250, 225)
#move(steve, 0, -325)
#human(steve, 25)
#move(steve, 0, 375)
#human(steve, 25)
#move(steve, 450, 0)
#human(steve, 25)
#move(steve, 0, -375)
#human(steve, 25)





























# move = turtle, x, y

# move = turtle, over, up	


wait_for_user()
